<?php
set_include_path('../:' . get_include_path());

require_once 'Services/Plazes.php';

$username = '';
$password = '';

try {
    $plazes = Services_Plazes::factory(
        $username,
        $password,
        'https://sandbox.plazes.com');

    var_dump($plazes->sessions->getLoginUrl('http://plazes.com/messages'));

} catch (Exception $e) {
    echo 'Exception: ' . $e->getMessage();
}
?>
